from django.db import models

# Create your models here.


class DateBase(models.Model):
    """
    数据库操作
    """
    name = models.CharField(max_length=30, verbose_name=u'数据库操作名称')
    data_base = models.CharField(max_length=30, verbose_name=u'数据库')
    help_method = models.CharField(max_length=500, blank=True, null=True, verbose_name='帮助信息')
    params = models.CharField(max_length=200, blank=True, null=True, verbose_name='参数')
    return_values = models.CharField(max_length=200, blank=True, null=True, verbose_name='返回值')
    add_time = models.DateTimeField(auto_now_add=True, verbose_name=u'创建时间')
    edit_time = models.DateTimeField(auto_now=True, verbose_name=u'修改时间')

    class Meta:
        db_table = 't_database'
        verbose_name = '数据库操作'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
